package com.kob.backend.controller.user;

import com.kob.backend.service.user.UserDeleteService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
public class UserDeleteController {
    @Autowired
    private UserDeleteService userDeleteService;
    @PostMapping("/user/delete/")
    public void deleteuser(@RequestParam Map<String,String> map){
        Integer id=Integer.parseInt(map.get("userid"));
        userDeleteService.deleteuser(id);
    }
}
